<div class="page page-address">
  <div class="addr-list-wrap">
    <ul class="addr-list">
      <li class="addr-item" ng-repeat="(id, address) in addressList" id="{{id}}" ng-click="onAddressClick(id);" ng-if="addressList" ng-class="{addressSelected:address.selected}">
        <div class="major-info">
          <span class="name">{{address.fullname}}</span>
          <span class="mobile">{{address.shipping_telephone}}</span>
          <span class="defaultAddr" ng-if="address.is_default=='1'"><i class="icon icon-location"></i><span>默认地址</span></span>
          </span>
        </div>
        <div class="addr">
          <!-- <span class="postCode" ng-if="address.postcode">{{address.postcode}}</span> -->
          <span class="p">{{address.country}},</span>
          <span class="c">{{address.zone}},</span>
          <span class="q">{{address.city}}</span>
          <span class="detailsAddr">{{address.address}}</span>
        </div>
        <div class="actions">
          <a class="action" href="javascript:void(0);" ng-click="editAddress(id);">编辑</a>
          <span class="separator"></span>
          <a class="action" href="javascript:void(0);" ng-click="deleteAddress(id);">删除</a>
        </div>
      </li>
    </ul>
  </div>

  <div class="btn-wrap">
    <a href="javascript:void(0);" class="btn btn-submit" ng-click="addAddress();">添加新地址</a>
  </div>

  <script type="text/ng-template" id="confirmDeleteDialog.html">
    <div class="dialog confirm-dialog" ng-click="$event.stopPropagation();">
      <p class="title ngdialog-text-center">确认删除此地址？</p>
      <div class="ngdialog-buttons">
        <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog(0);$event.stopPropagation()">取消</button>
        <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="confirm(1);$event.stopPropagation()">确认</button>
      </div>
    </div>
  </script>
</div>
